package com.cloudcentral.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloudcentral.entity.UserAudit;

/**
 * <p>
 * 待审核用户表 Mapper 接口
 * </p>
 *
 * @author Administrator
 * @since 2023-10-27
 */
public interface UserAuditBaseMapper extends BaseMapper<UserAudit> {
  default UserAudit selectUser(String name) {
    QueryWrapper<UserAudit> queryWrapper = new QueryWrapper<>();
    queryWrapper.eq("username", name).or().eq("phone", name);
    return selectOne(queryWrapper);
  }
}
